<?php
namespace libs;

class Util{
	public static function strToCamel($str){
		$arr = explode('-',$str);
		$uc  = array_map(function($a){return ucfirst($a);},$arr);
		return implode('', $uc);
	}

	public static function microtime_float(){
	    list($usec, $sec) = explode(" ", microtime());
	    return ((float)$usec + (float)$sec);
	}
}